list_sound_devices

This function lists all the devices that can be found on the system.

string[] list_sound_devices()

Parameters:
None.

Return value:
An array containing the friendly names of all available devices, or an empty array on failure.

Remarks:
The devices will be listed in the order they appear in the Windows device list.

Example:
// Enumerate all the devices on the system.

void main()
{
string[] devices;
devices=list_sound_devices();
if(devices.length()==0)
{
alert("Error", "No devices can be found on your system.");
exit();
}
for(uint i=0;i<devices.length();i++)
{
alert("Device " + (i+1), devices[i]);
}
}